import service from '@/utils/request'
// import qs from 'qs'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    // 根据根据单据ID 批量删除删除评标结果登记
    batchDelete (params) {
        return httpPost({
            url: '/tender/result/batchDelete',
            params
        })
    },
    // 评标结果新增选中招标申请ID时使用(返回相应的基础信息)
    create (applyId) {
        return httpPost({
            url: `/tender/result/create/${applyId}`,
        })
    },
    // 根据单据ID(billId)查询
    findById (applyId) {
        return httpGet({
            url: `/tender/result/findById/${applyId}`,
        })
    },
    // 评标结果登记列表
    findByTenderApplyId (tenderApplyId) {
        return httpPost({
            url: `/tender/result/findByTenderApplyId/${tenderApplyId}`,
        })
    },
    // 新增评标结果登记
    save (params) {
        return httpPost({
            url: '/tender/result/save',
            params
        })
    },
    // 更新评标结果登记
    update (params) {
        return httpPost({
            url: '/tender/result/update',
            params
        })
    },
    // 获取候选人下拉框列表
    getCandidateList (params) {
        return httpGet({
            url: '/tender/result/getCandidateList',
            params,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            },
        })
    },
}

export default request